﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucThemBenhAn.ascx.cs"
    Inherits="HeathCareSystem.wuc.wucThemBenhAn" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<style type="text/css">
    
</style>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table align="center" class="style1" width="100%">
            <tr>
                <td align="center" colspan="3" style="font-size: xx-large; font-weight: bold; color: #800000;">
                    Hồ Sơ Bệnh Án
                </td>
            </tr>
            <tr>
                <td>
                    Mã Phiếu Khám:
                </td>
                <td>
                    <asp:TextBox ID="txtMa" runat="server" Height="23px" Width="187px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Ngày Khám:
                </td>
                <td>
                    <asp:TextBox ID="txtNgay" runat="server" Height="29px" Width="186px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtNgay_CalendarExtender" runat="server" TargetControlID="txtNgay"
                        Format="MM/dd/yyyy">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td>
                    Triệu Chứng:
                </td>
                <td>
                    <asp:TextBox ID="txtTrieuChung" runat="server" Height="27px" Width="185px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Chuẩn Đoán:
                </td>
                <td>
                    <asp:DropDownList ID="ddlChanDoan" runat="server" Height="21px" Width="186px">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    Danh Sách Xét Nghiệm:
                </td>
                <td>
                    <asp:LinkButton ID="lbtnXetNghiem" runat="server">Phiếu Xét Nghiệm</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    Danh Sách Toa Thuốc:
                </td>
                <td>
                    <asp:LinkButton ID="lbtnThuoc" runat="server">Toa Thuốc</asp:LinkButton>
                </td>
            </tr>
            <tr>
                <td>
                    Kết Luận:
                </td>
                <td>
                    <asp:TextBox ID="txtKetLuan" runat="server" Height="24px" Width="255px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Ngày Tái Khám:
                </td>
                <td>
                    <asp:TextBox ID="txtNgayTai" runat="server" Height="23px" Width="187px"></asp:TextBox>
                    <asp:CalendarExtender ID="txtNgayTai_CalendarExtender" runat="server" TargetControlID="txtNgayTai"
                        Format="MM/dd/yyyy">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    &nbsp;<asp:Button ID="btnThem" runat="server" Text="Thêm Hồ Sơ" OnClick="btnThem_Click" />
                    &nbsp;<asp:Button ID="btnLamMoi" runat="server" Text="Làm mới" Height="24px" Width="97px"
                        OnClick="btnThoat_Click" />
                </td>
            </tr>
        </table>
        <div>
            <asp:Label ID="lblThongBao" runat="server" Font-Size="14pt" ForeColor="#FF3300"></asp:Label>
        </div>
        <div>
            <asp:DropDownList ID="ddlLoc" runat="server" AutoPostBack="True" 
                onselectedindexchanged="ddlLoc_SelectedIndexChanged">
                <asp:ListItem Selected="True" Value="0">Chưa có hồ sơ</asp:ListItem>
                <asp:ListItem Value="1">Đã có hồ sơ</asp:ListItem>
            </asp:DropDownList>
            <asp:GridView ID="gvThongTinBN" runat="server" Style="margin-top: 0px" Width="100%"
                AutoGenerateColumns="False" CellPadding="4" EnableModelValidation="True" ForeColor="#333333"
                GridLines="None" OnPageIndexChanging="gvThongTinBN_PageIndexChanging" OnRowCommand="gvThongTinBN_RowCommand"
                OnSelectedIndexChanging="gvThongTinBN_SelectedIndexChanging">
                <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:ButtonField ButtonType="Image" CommandName="MaPhieuKham" DataTextField="MaPhieuKham"
                        HeaderText="Bệnh án" ImageUrl="~/App_Themes/Guest/Images/icon-detail.png" Text="Button" />
                    <asp:BoundField DataField="MaPhieuKham" HeaderText="Mã phiếu khám" />
                    <asp:BoundField DataField="HoTen" HeaderText="Họ tên" />
                    <asp:BoundField DataField="GioiTinh" HeaderText="Giới tính" />
                    <asp:BoundField DataField="NgaySinh" HeaderText="Ngày sinh" />
                    <asp:BoundField DataField="SoDienThoai" HeaderText="Số điện thoại" />
                    <asp:BoundField DataField="QueQuan" HeaderText="Quê quán" />
                </Columns>
                <EditRowStyle BackColor="#2461BF" />
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#EFF3FB" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            </asp:GridView>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
